<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>simvoc.core.voc_sim.AutoVOC</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="simvoc-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >SimVOC</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="simvoc-module.html">Package&nbsp;simvoc</a> ::
        <a href="simvoc.core-module.html">Package&nbsp;core</a> ::
        <a href="simvoc.core.voc_sim-module.html">Module&nbsp;voc_sim</a> ::
        Class&nbsp;AutoVOC
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class AutoVOC</h1><p class="nomargin-top"><span class="codelink"><a href="simvoc.core.voc_sim-pysrc.html#AutoVOC">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_simvoc_c_56" name="uml_class_diagram_for_simvoc_c_56">
<area shape="rect" id="node131" href="simvoc.core.voc_sim.AutoVOC-class.html#__init__" title="x.__init__(...) initializes x; see x.__class__.__doc__ for signature" alt="" coords="17,455,519,473"/>
<area shape="rect" id="node131" href="simvoc.core.voc_sim.AutoVOC-class.html#__setitem__" title="Adds a VO to the collection." alt="" coords="17,473,519,492"/>
<area shape="rect" id="node1" href="simvoc.core.voc_sim.AutoVOC-class.html" title="Replacement VOCollection object that automatically creates a VOC and corresponding grid CE for each VO seen in an input trace." alt="" coords="5,422,531,498"/>
<area shape="rect" id="node2" href="simvoc.core.vo_format_reader.VOCollection-class.html" title="Collection of VO objects for use with the simulator." alt="" coords="165,358,368,402"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="hash(x)" alt="" coords="208,31,328,49"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="cmp(x,y)" alt="" coords="208,52,328,71"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="dict.__contains__" alt="" coords="208,71,328,89"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="del x[y]" alt="" coords="208,89,328,108"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="x==y" alt="" coords="208,108,328,127"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="x&gt;=y" alt="" coords="208,127,328,145"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="x.__getattribute__(&#39;name&#39;) &lt;==&gt; x.name" alt="" coords="208,145,328,164"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="x[y]" alt="" coords="208,164,328,183"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="x&gt;y" alt="" coords="208,183,328,201"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="iter(x)" alt="" coords="208,201,328,220"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="x&lt;=y" alt="" coords="208,220,328,239"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="len(x)" alt="" coords="208,239,328,257"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="x&lt;y" alt="" coords="208,257,328,276"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="x!=y" alt="" coords="208,276,328,295"/>
<area shape="rect" id="node133" href="javascript:void(0);" title="dict.values" alt="" coords="208,313,328,332"/>
<area shape="rect" id="node3" href="javascript:void(0);" title="dict() &#45;&gt; new empty dictionary." alt="" coords="196,6,340,338"/>
</map>
  <img src="uml_class_diagram_for_simvoc_c_56.gif" alt='' usemap="#uml_class_diagram_for_simvoc_c_56" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>Replacement VOCollection object that automatically creates a VOC and 
  corresponding grid CE for each VO seen in an input trace.</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><pre class="literalblock">
new empty dictionary

</pre></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="simvoc.core.voc_sim.AutoVOC-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">grid</span>,
        <span class="summary-sig-arg">img_src</span>,
        <span class="summary-sig-arg">default_size</span>,
        <span class="summary-sig-arg">default_sched</span>,
        <span class="summary-sig-arg">default_boot</span>,
        <span class="summary-sig-arg">wd</span>,
        <span class="summary-sig-arg">**wd_kwds</span>)</span><br />
      x.__init__(...) initializes x; see x.__class__.__doc__ for signature</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="simvoc.core.voc_sim-pysrc.html#AutoVOC.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="simvoc.core.voc_sim.AutoVOC-class.html#__setitem__" class="summary-sig-name">__setitem__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">vo</span>,
        <span class="summary-sig-arg">record</span>)</span><br />
      Adds a VO to the collection.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="simvoc.core.voc_sim-pysrc.html#AutoVOC.__setitem__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>dict</code></b>:
      <code>__cmp__</code>,
      <code>__contains__</code>,
      <code>__delitem__</code>,
      <code>__eq__</code>,
      <code>__ge__</code>,
      <code>__getattribute__</code>,
      <code>__getitem__</code>,
      <code>__gt__</code>,
      <code>__iter__</code>,
      <code>__le__</code>,
      <code>__len__</code>,
      <code>__lt__</code>,
      <code>__ne__</code>,
      <code>__new__</code>,
      <code>__repr__</code>,
      <code>__sizeof__</code>,
      <code>clear</code>,
      <code>copy</code>,
      <code>fromkeys</code>,
      <code>get</code>,
      <code>has_key</code>,
      <code>items</code>,
      <code>iteritems</code>,
      <code>iterkeys</code>,
      <code>itervalues</code>,
      <code>keys</code>,
      <code>pop</code>,
      <code>popitem</code>,
      <code>setdefault</code>,
      <code>update</code>,
      <code>values</code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__format__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__setattr__</code>,
      <code>__str__</code>,
      <code>__subclasshook__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>dict</code></b>:
      <code>__hash__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Properties</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Properties"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">grid</span>,
        <span class="sig-arg">img_src</span>,
        <span class="sig-arg">default_size</span>,
        <span class="sig-arg">default_sched</span>,
        <span class="sig-arg">default_boot</span>,
        <span class="sig-arg">wd</span>,
        <span class="sig-arg">**wd_kwds</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="simvoc.core.voc_sim-pysrc.html#AutoVOC.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>x.__init__(...) initializes x; see x.__class__.__doc__ for 
  signature</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>grid</code></strong> - Grid to which new VOCs will be added</li>
        <li><strong class="pname"><code>img_src</code></strong> - FileStore that will be used to contain all VM images</li>
        <li><strong class="pname"><code>default_size</code></strong> (int) - Size (bytes) of the VM image if no specific size is specified for
          a particular VO</li>
        <li><strong class="pname"><code>default_sched</code></strong> (str) - Name of the scheduler to use with the VOC if no specific 
          scheduler is specified</li>
        <li><strong class="pname"><code>default_boot</code></strong> (number) - Default VM boot time in simulator time units</li>
        <li><strong class="pname"><code>wd</code></strong> - Watchdog class to instantiate to manage the VOC</li>
        <li><strong class="pname"><code>wd_kwds</code></strong> - Keyword arguments to the watchdog class</li>
    </ul></dd>
    <dt>Returns: <pre class="literalblock">
new empty dictionary

</pre></dt>
    <dt>Overrides:
        object.__init__
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="__setitem__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__setitem__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">vo</span>,
        <span class="sig-arg">record</span>)</span>
    <br /><em class="fname">(Index assignment operator)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="simvoc.core.voc_sim-pysrc.html#AutoVOC.__setitem__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Adds a VO to the collection. If the VO is new (i.e. not already in the
  collection), then a new VOC, watchdog instance, and CE are created and 
  added to the grid. Otherwise, this method simply changes the watchdog 
  policy of an existing VOC.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>vo</code></strong> (str) - Name of the Virtual Organization</li>
        <li><strong class="pname"><code>record</code></strong> - VO instance to add to the collection</li>
    </ul></dd>
    <dt>Overrides:
        dict.__setitem__
    </dt>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="simvoc-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >SimVOC</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0 on Fri Oct 23 11:04:34 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
